package main

import (
	"fmt"
	"work_test/worklib/astar"
	"work_test/worklib/priority_queue"
)

/*
26 27 28 29 30
21 22 23 24 25
16 17 18 19 20
11 12 13 14 15
6  7  8  9  10
1  2  3  4  5
*/

func main() {
	obstacleL := []int{22, 23, 24, 19, 14, 9, 8}
	astar.FindPath(5, 6, 11, 25, obstacleL)

}

func main1() {
	pq := priority_queue.NewQueue(col)
	pq.Push(1)
	pq.Push(4)
	pq.Push(2)
	pq.Push(7)
	pq.Show()
	fmt.Println(pq.Pop())
	fmt.Println(pq.Pop())
	fmt.Println(pq.Pop())
	fmt.Println(pq.Pop())

}
func col(x, y any) bool {
	return x.(int) > y.(int)
}
